package com.sinosun.autotestmachine.tools.parser;

/**
 * 文件类型枚举
 * @author HYW
 *
 */
public enum FileType {
	FILE(0),
	IMAGE(1),
	AUDIO(2),
	VIDEO(3)
	;
	int value;
	
	FileType(int value) {
		this.value = value;
	}
	
	public int value() {
		return value;
	}
	
	public static FileType valueOf(int value) {
		switch(value)
		{
		case 0:
			return FILE;
		case 1:
			return IMAGE;
		case 2:
			return AUDIO;
		case 3:
			return VIDEO;
		default:
			return null;
		}
	}
}
